package factory;

import actions.ActionBuildBadHouse;
import actions.ActionGetHouse;
import interfaces.ActionInterface;

import interfaces.impl.actions.ActionModifySpetialFeature;
import interfaces.impl.actions.ActionMove;
import interfaces.impl.actions.ActionXYtoMove;


public class ActionFactory {

	public static ActionInterface getAction(int actionId) {
		
		switch(actionId){
		
		case Constants.ACTION_MOVE:
			return new ActionMove();
			
		case Constants.ACTION_MODIFY_SPETIAL_FEATURE:
			return new ActionModifySpetialFeature();
		
		case Constants.ACTION_XY_TO_MOVE:
			return new ActionXYtoMove();
			
		case Constants.ACTION_GET_HOUSE:
			return new ActionGetHouse();
			
		case  Constants.ACTION_BUILD_BAD_HOUSE:
			return new ActionBuildBadHouse();
		}
		
		System.out.println("NO TENGO LA ACCION QUE BUSCO EN ACTION FACTORY");
		return null;
	}

}
